import {Component} from "@angular/core";
import {CategoryService} from "./Category.Service";
import {Category} from "./entity/Category";
@Component({
    selector:"my-leftbody",
    templateUrl:"./app/LeftBody.html",
    providers:[CategoryService]
})
export class LeftBodyComponent{
    private categoryList:Category[];
    constructor(categoryService:CategoryService){
        this.categoryList=categoryService.getAll();
    }
}
